package com.baidumap.administrator.happystudy.model;

import com.ab.util.AbJsonUtil;

/**
 * 描述：
 * 作者：xiaoxing on 17/4/11 20:41
 * 邮箱：2235445233@qq.com
 */
public class TeacherDetail {


    /**
     * code : 200
     * msg : success
     * data : {"teacher_id":"19","teacher_pic":"/Uploads/2017-04-14/58f0e897491e0.jpg","name":" 连 小蓉","area":"江苏市大幅度释放","school_name":"北京财经管理学院","section":"英语系","grade":"三年级","questions":null,"rank":null,"is_auth":"0","is_realname":"0","is_exclusive":"0","image":"/Uploads/2017-04-23/58fc7a0242bde.gif"}
     */

    private String code;
    private String msg;
    private DataBean data;

    /**
     * 用json构造自己
     *
     * @param json
     */
    public TeacherDetail(String json) {
        TeacherDetail result = AbJsonUtil.fromJson(json, this.getClass());
        this.code = result.getCode();
        this.msg = result.getMsg();
        this.data = result.getData();

    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * teacher_id : 19
         * teacher_pic : /Uploads/2017-04-14/58f0e897491e0.jpg
         * name :  连 小蓉
         * area : 江苏市大幅度释放
         * school_name : 北京财经管理学院
         * section : 英语系
         * grade : 三年级
         * questions : null
         * rank : null
         * is_auth : 0
         * is_realname : 0
         * is_exclusive : 0
         * image : /Uploads/2017-04-23/58fc7a0242bde.gif
         */

        private String teacher_id;
        private String teacher_pic;
        private String name;
        private String area;
        private String school_name;
        private String section;
        private String grade;
        private String questions;
        private String rank;
        private String is_auth;
        private String is_realname;
        private String is_exclusive;
        private String image;

        public String getTeacher_id() {
            return teacher_id;
        }

        public void setTeacher_id(String teacher_id) {
            this.teacher_id = teacher_id;
        }

        public String getTeacher_pic() {
            return teacher_pic;
        }

        public void setTeacher_pic(String teacher_pic) {
            this.teacher_pic = teacher_pic;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getArea() {
            return area;
        }

        public void setArea(String area) {
            this.area = area;
        }

        public String getSchool_name() {
            return school_name;
        }

        public void setSchool_name(String school_name) {
            this.school_name = school_name;
        }

        public String getSection() {
            return section;
        }

        public void setSection(String section) {
            this.section = section;
        }

        public String getGrade() {
            return grade;
        }

        public void setGrade(String grade) {
            this.grade = grade;
        }

        public String getQuestions() {
            return questions;
        }

        public void setQuestions(String questions) {
            this.questions = questions;
        }

        public String getRank() {
            return rank;
        }

        public void setRank(String rank) {
            this.rank = rank;
        }

        public String getIs_auth() {
            return is_auth;
        }

        public void setIs_auth(String is_auth) {
            this.is_auth = is_auth;
        }

        public String getIs_realname() {
            return is_realname;
        }

        public void setIs_realname(String is_realname) {
            this.is_realname = is_realname;
        }

        public String getIs_exclusive() {
            return is_exclusive;
        }

        public void setIs_exclusive(String is_exclusive) {
            this.is_exclusive = is_exclusive;
        }

        public String getImage() {
            return image;
        }

        public void setImage(String image) {
            this.image = image;
        }
    }
}
